package com.example.mybatis_plus_use.service;

import com.example.mybatis_plus_use.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mybatis_plus_use.utils.Result;
import com.example.mybatis_plus_use.enums.Education;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zjh
 * @since 2025-01-07
 */
public interface UserService extends IService<User> {
    Map<Education, List<User>> getUsersGroupByEducationLevel() ;

    List<User> GetUserByPartialName(String partialName);

    List<User> GetUserAndOrderDetailByid(Integer id);

    Result<String> SaveUser(User user);

    String getEducationDesc(Integer level);

    List<User> getUsersByMinEducation(Integer minLevel);

    void updateUserEducation(Long userId, Integer level);

    List<User> getUsersByEducation(Education education);

    Map<Education, List<User>> getUsersGroupByEducationLevelN(Integer education);

    String getNameById(Long authorId);
}
//IService已经提供了分页方法